<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<body>
<h2>Home!</h2>

<a href="${pageContext.request.contextPath}/register">Register</a>
<br>
<a href="${pageContext.request.contextPath}/users">Veiw all users</a>
<br>
<a href="${pageContext.request.contextPath}/create">Create custom link</a>
<br>

<c:if test="${ not empty user }">
	ulogovan je: <br>
	<a href="${pageContext.request.contextPath}/${ user.username }">${ user.username }</a>
	<a href="${pageContext.request.contextPath}/edit">Edit profile</a>	
</c:if>

<c:if test="${ empty user }">
	niko nije ulogovan
	<br>
	<a href="${pageContext.request.contextPath}/login">Login</a>
</c:if>

</body>
</html>
